aimaswx commited on
Commit
2b8d135
1 Parent(s): 234faf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  hf_api_key = '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'
6
 
7
  #FalcomLM-instruct endpoint on the text_generation library
8
- client = Client("https://api-inference.huggingface.co/models/tiiuae/falcon-40b-instruct", headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
9
 
10
  def generate(input, slider):
11
  output = client.generate(input, max_new_tokens=slider).generated_text
 
5
  hf_api_key = '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'
6
 
7
  #FalcomLM-instruct endpoint on the text_generation library
8
+ client = Client("https://api-inference.huggingface.co/models/tiiuae/falcon-7b-instruct", headers={"Authorization": f"Bearer {hf_api_key}"}, timeout=120)
9
 
10
  def generate(input, slider):
11
  output = client.generate(input, max_new_tokens=slider).generated_text