Spaces:
Sleeping
Sleeping
jteng2127
commited on
Commit
·
66aa8c3
1
Parent(s):
11c8ace
tmp
Browse files
app.py
CHANGED
@@ -30,12 +30,12 @@ def generate_response(input_text):
|
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
gr.Markdown("## PDF Processing with Gemini API")
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
39 |
|
40 |
|
41 |
if __name__ == "__main__":
|
|
|
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__":
|