Spaces:
Sleeping
Sleeping
Commit
•
ddef1c9
1
Parent(s):
4215587
Update app.py
Browse filesChanged Default Context
app.py
CHANGED
@@ -34,12 +34,16 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
34 |
import gradio as gr
|
35 |
|
36 |
context = """
|
37 |
-
|
|
|
|
|
|
|
38 |
"""
|
39 |
-
question = "
|
40 |
demo = gr.Interface.load(
|
41 |
"huggingface/" + model_name ,
|
42 |
theme="dark-peach",
|
|
|
43 |
inputs=[gr.inputs.Textbox(lines=7, default=context, label="Context Paragraph"), gr.inputs.Textbox(lines=2, default=question, label="Question")],
|
44 |
outputs=[gr.outputs.Textbox(label="Answer")
|
45 |
#,gr.outputs.Textbox(label="Score")
|
|
|
34 |
import gradio as gr
|
35 |
|
36 |
context = """
|
37 |
+
Subject: Staffdel Valeo
|
38 |
+
Reservations for Mr. Valeo have been made at Hyatt hotel November 11 - 15. Ambassador has issued invitations for dinner in Mr. Valeo's honor November 14 to government officials, political figures, journalists, and businessmen who have associations with various aspects of China question.
|
39 |
+
Ambassador would also like invite Mr. Valeo to dinner he is giving November 12 in honor archbishop sin, who is new and impressive figure on Philippine national scene. Guests will be prominent clerical and lay leaders of church who can give Mr. Valeo interesting perspective on their current outlook. Requested briefings will be arranged at embassy on November 12. Please advise if Mr. Valeo has other program interests, he wishes us to arrange in advance his arrival. As Mr. Valeo probably knows, Mrs. Marcos, governor
|
40 |
+
|
41 |
"""
|
42 |
+
question = "When is the Hyatt Hotel reservation?"
|
43 |
demo = gr.Interface.load(
|
44 |
"huggingface/" + model_name ,
|
45 |
theme="dark-peach",
|
46 |
+
css=".footer{display:none !important}"
|
47 |
inputs=[gr.inputs.Textbox(lines=7, default=context, label="Context Paragraph"), gr.inputs.Textbox(lines=2, default=question, label="Question")],
|
48 |
outputs=[gr.outputs.Textbox(label="Answer")
|
49 |
#,gr.outputs.Textbox(label="Score")
|