Spaces:
Sleeping
Sleeping
jteng2127
commited on
Commit
·
b388f8c
1
Parent(s):
c473da7
tmp
Browse files
app.py
CHANGED
@@ -30,13 +30,13 @@ def generate_response(input_text):
|
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
gr.Markdown("## PDF Processing with Gemini API")
|
33 |
-
message = "I want to go to Taipei with 6 people, we have three thousand USD for 5 days. we plan we depart at February 2nd"
|
34 |
-
input_text = gr.Textbox(label="User Request", value=message, placeholder="Enter your travel detail here")
|
35 |
-
output_pdf = gr.File(label="Download Output PDF")
|
36 |
-
submit = gr.Button("Generate")
|
37 |
|
38 |
-
submit.click(fn=generate_response, inputs=input_text, outputs=output_pdf)
|
39 |
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
-
demo.launch(
|
|
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
gr.Markdown("## PDF Processing with Gemini API")
|
33 |
+
# message = "I want to go to Taipei with 6 people, we have three thousand USD for 5 days. we plan we depart at February 2nd"
|
34 |
+
# input_text = gr.Textbox(label="User Request", value=message, placeholder="Enter your travel detail here")
|
35 |
+
# output_pdf = gr.File(label="Download Output PDF")
|
36 |
+
# submit = gr.Button("Generate")
|
37 |
|
38 |
+
# submit.click(fn=generate_response, inputs=input_text, outputs=output_pdf)
|
39 |
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
+
demo.launch()
|