msteinhaus commited on
Commit
5b2cfe9
1 Parent(s): 99b0765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -25,12 +25,15 @@ if __name__ == "__main__":
25
  # make a gradio interface
26
  import gradio as gr
27
 
28
- gr.Interface(
29
- make_inference,
30
- [
31
- gr.inputs.Textbox(lines=2, label="Query"),
32
- ],
33
- gr.outputs.Textbox(label="Response"),
34
- title="🗣️TalkToMyDoc📄",
35
- #description="🗣️TalkToMyDoc📄 is a tool that allows you to ask questions about a document. In this case - Hitch Hitchhiker's Guide to the Galaxy.",
36
- ).launch()
 
 
 
 
25
  # make a gradio interface
26
  import gradio as gr
27
 
28
+ # gr.Interface(
29
+ # make_inference,
30
+ # [
31
+ # gr.inputs.Textbox(lines=2, label="Query"),
32
+ # ],
33
+ # gr.outputs.Textbox(label="Response"),
34
+ # title="🗣️TalkToMyDoc📄",
35
+ # #description="🗣️TalkToMyDoc📄 is a tool that allows you to ask questions about a document. In this case - Hitch Hitchhiker's Guide to the Galaxy.",
36
+ # ).launch()
37
+
38
+ demo = gr.Interface(fn=make_inference, inputs=gr.Textbox(lines = 2, label = "Query"), outputs=gr.Textbox(label = "Response"))
39
+ demo.launch()