Soratz commited on
Commit
0b781db
1 Parent(s): 1bb2d78

removed launch parameters

Browse files
Files changed (3) hide show
  1. __pycache__/model.cpython-310.pyc +0 -0
  2. app.py +1 -1
  3. model.py +2 -2
__pycache__/model.cpython-310.pyc ADDED
Binary file (1.79 kB). View file
 
app.py CHANGED
@@ -243,4 +243,4 @@ with gr.Blocks(css='style.css') as demo:
243
  api_name=False,
244
  )
245
 
246
- demo.queue(max_size=32).launch(share=SHARE, show_api=False)
 
243
  api_name=False,
244
  )
245
 
246
+ demo.queue(max_size=32).launch()
model.py CHANGED
@@ -3,9 +3,9 @@ from typing import Iterator
3
 
4
  from text_generation import Client
5
 
6
- model_id = 'mistralai/Mistral-7B-Instruct-v0.1'
7
 
8
- API_URL = "https://api-inference.huggingface.co/models/" + model_id
9
  HF_TOKEN = os.environ.get("HF_READ_TOKEN", None)
10
 
11
  client = Client(
 
3
 
4
  from text_generation import Client
5
 
6
+ _MODEL_ID = 'mistralai/Mistral-7B-Instruct-v0.1'
7
 
8
+ API_URL = "https://api-inference.huggingface.co/models/" + _MODEL_ID
9
  HF_TOKEN = os.environ.get("HF_READ_TOKEN", None)
10
 
11
  client = Client(