Francisco Santos commited on
Commit
743b2fe
β€’
1 Parent(s): 620d324

examples 2

Browse files
app.py CHANGED
@@ -162,8 +162,12 @@ iface = gr.Interface(fn=process_files,
162
  inputs=[gr.inputs.File(label="Upload HTML File"), gr.inputs.File(label="Upload JSON File")],
163
  outputs="text",
164
  examples=[
165
- ["./examples/form0.html", "./examples/form1.html", "./examples/form2.html", "./examples/form3.html", "./examples/form4.html"],
166
- ["./examples/form0_answer.json", "./examples/form1_answer.json", "./examples/form2_answer.json", "./examples/form3_answer.json", "./examples/form4_answer.json"]
 
 
 
167
  ])
 
168
 
169
  iface.launch()
 
162
  inputs=[gr.inputs.File(label="Upload HTML File"), gr.inputs.File(label="Upload JSON File")],
163
  outputs="text",
164
  examples=[
165
+ # ["./examples/form0.html", "./examples/form0_answer.json"],
166
+ ["./examples/form1.html", "./examples/form1_answer.json"],
167
+ ["./examples/form2.html", "./examples/form2_answer.json"],
168
+ ["./examples/form3.html", "./examples/form3_answer.json"],
169
+ ["./examples/form4.html", "./examples/form4_answer.json"]
170
  ])
171
+
172
 
173
  iface.launch()
examples/{form1_answer1.json β†’ form1_answer.json} RENAMED
File without changes
output.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Contact Form</title>
6
+ </head>
7
+ <body>
8
+ <h1>Contact Form</h1>
9
+ <form action="/submit-form" method="POST">
10
+ <label for="name">Name:</label>
11
+ <input type="text" id="name" name="name" required><!-- Input: Please fill in the name field. with this certainty: 0.8276665210723877 -->
12
+ <br>
13
+ <label for="email">Email:</label>
14
+ <input type="email" id="email" name="email" required><!-- Input: frs98com@gmail.com with this certainty: 0.8814952373504639 -->
15
+ <br>
16
+ <label for="location">Location:</label>
17
+ <input type="text" id="location" name="location" required><!-- Input: Amsterdam, Netherlands with this certainty: 0.845346212387085 -->
18
+ <br>
19
+ <label for="github">GitHub:</label>
20
+ <input type="url" id="github" name="github" required><!-- Input: https://github.com/qtoino with this certainty: 0.6784256100654602 -->
21
+ <br>
22
+ <label for="linkedin">LinkedIn:</label>
23
+ <input type="url" id="linkedin" name="linkedin" required><!-- Input: https://www.linkedin.com/in/francisco-rsantos/ with this certainty: 0.735436737537384 -->
24
+ <br>
25
+ <label for="phone">Phone:</label>
26
+ <input type="tel" id="phone" name="phone" required><!-- Input: +351 927 050 265 with this certainty: 0.8759291768074036 -->
27
+ <br><br>
28
+ <input type="submit" value="Submit"><!-- Input: Please fill in the name field. with this certainty: 0.2793944180011749 -->
29
+ </form>
30
+ </body>
31
+ </html>