Namitg02 commited on
Commit
5347e77
·
verified ·
1 Parent(s): f902b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -82,16 +82,19 @@ 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
-
87
 
88
  print("check3A")
89
  #print(chain)[0]['generated_text'][-1]
90
  print("check3B")
91
 
92
  import gradio as gr
93
- ragdemo = gr.Interface.from_pipeline(chain)
 
 
 
94
 
95
  print("check4")
96
- ragdemo.launch()
97
  print("check5")
 
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]
90
  print("check3B")
91
 
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()
97
 
98
  print("check4")
99
+ #ragdemo.launch()
100
  print("check5")