Namitg02 commited on
Commit
56253bf
·
verified ·
1 Parent(s): 8c7f62e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -82,8 +82,8 @@ print("result")
82
 
83
  print("check3")
84
  #chain = pipe(question = question,context = "Use the following information to answer the question. {context}.")
85
- #chain = pipe(question = question,context = "Use the following information to answer the question. Diabetes can be cured by eating apples.")
86
- context = "Use the following information to answer the question. Diabetes can be cured by eating apples."
87
 
88
  print("check3A")
89
  #print(chain)[0]['generated_text'][-1]
@@ -92,8 +92,7 @@ print("check3B")
92
  import gradio as gr
93
  #ragdemo = gr.Interface.from_pipeline(chain)
94
 
95
- interface = gr.Interface.from_pipeline(pipe,
96
- examples = [[context, question]]).launch(share=True)
97
 
98
  print("check4")
99
  #ragdemo.launch()
 
82
 
83
  print("check3")
84
  #chain = pipe(question = question,context = "Use the following information to answer the question. {context}.")
85
+ chain = pipe(question = question,context = "Use the following information to answer the question. Diabetes can be cured by eating apples.")
86
+ #context = "Use the following information to answer the question. Diabetes can be cured by eating apples."
87
 
88
  print("check3A")
89
  #print(chain)[0]['generated_text'][-1]
 
92
  import gradio as gr
93
  #ragdemo = gr.Interface.from_pipeline(chain)
94
 
95
+ interface = gr.Interface.from_pipeline(chain).launch(share=True)
 
96
 
97
  print("check4")
98
  #ragdemo.launch()