Spaces:
Runtime error
Runtime error
Allen Park
commited on
Commit
·
ec09f15
1
Parent(s):
6b786ce
change 8b model name from 'Patronus Lynx 8B' to 'Patronus Lynx 8B v1.1'
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ HEADER = """
|
|
| 72 |
"""
|
| 73 |
|
| 74 |
def update_client_base_url(model_name):
|
| 75 |
-
if model_name == "Patronus Lynx 8B":
|
| 76 |
return "https://yb15a7dy-patronus-lynx-8b-v1-1.tin.lepton.run/api/v1/"
|
| 77 |
elif model_name == "Patronus Lynx 70B":
|
| 78 |
return "https://yb15a7dy-lynx-70b.tin.lepton.run/api/v1/"
|
|
@@ -137,7 +137,7 @@ with gr.Blocks() as demo:
|
|
| 137 |
base_url_state = gr.State(update_client_base_url("Patronus Lynx 8B"))
|
| 138 |
gr.Markdown(HEADER)
|
| 139 |
# gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
| 140 |
-
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model", interactive=True)
|
| 141 |
with gr.Row():
|
| 142 |
with gr.Column(scale=1):
|
| 143 |
question = gr.Textbox(label="Question")
|
|
|
|
| 72 |
"""
|
| 73 |
|
| 74 |
def update_client_base_url(model_name):
|
| 75 |
+
if model_name == "Patronus Lynx 8B v1.1":
|
| 76 |
return "https://yb15a7dy-patronus-lynx-8b-v1-1.tin.lepton.run/api/v1/"
|
| 77 |
elif model_name == "Patronus Lynx 70B":
|
| 78 |
return "https://yb15a7dy-lynx-70b.tin.lepton.run/api/v1/"
|
|
|
|
| 137 |
base_url_state = gr.State(update_client_base_url("Patronus Lynx 8B"))
|
| 138 |
gr.Markdown(HEADER)
|
| 139 |
# gr.Interface(fn=model_call, inputs=inputs, outputs=outputs)
|
| 140 |
+
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model", interactive=True)
|
| 141 |
with gr.Row():
|
| 142 |
with gr.Column(scale=1):
|
| 143 |
question = gr.Textbox(label="Question")
|