vkthakur88 commited on
Commit
9240a93
1 Parent(s): e095d70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import huggingface_hub as hf_hub
3
  import os
4
 
5
  hf_client = hf_hub.InferenceClient(token = os.environ['HF_TOKEN'])
6
- #hf_client.headers["x-use-cache"] = "0"
7
 
8
 
9
  def interface(question):
@@ -20,4 +20,6 @@ app = gr.Interface(
20
  fn = interface,
21
  inputs = gr.Textbox(label = 'Input Question'),
22
  outputs = gr.Textbox(label = 'Generated Response')
23
- )
 
 
 
3
  import os
4
 
5
  hf_client = hf_hub.InferenceClient(token = os.environ['HF_TOKEN'])
6
+ hf_client.headers["x-use-cache"] = "0"
7
 
8
 
9
  def interface(question):
 
20
  fn = interface,
21
  inputs = gr.Textbox(label = 'Input Question'),
22
  outputs = gr.Textbox(label = 'Generated Response')
23
+ )
24
+
25
+ app.launch()