Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from typing import Dict, List, Optional, Tuple
|
|
6 |
import gradio as gr
|
7 |
|
8 |
import sambanova_gradio
|
|
|
9 |
|
10 |
import modelscope_studio.components.base as ms
|
11 |
import modelscope_studio.components.legacy as legacy
|
@@ -155,12 +156,11 @@ with gr.Blocks(css_paths="app.css") as demo:
|
|
155 |
return response_text
|
156 |
|
157 |
# Get the model from sambanova_gradio
|
158 |
-
fn =
|
159 |
model_name='Qwen2.5-Coder-32B-Instruct',
|
160 |
preprocess=preprocess,
|
161 |
postprocess=postprocess,
|
162 |
-
api_key=YOUR_API_TOKEN
|
163 |
-
base_url="https://fast-cloud-snova-ai-dev-0-api.cloud.snova.ai/v1"
|
164 |
)
|
165 |
|
166 |
response_text = ''
|
|
|
6 |
import gradio as gr
|
7 |
|
8 |
import sambanova_gradio
|
9 |
+
from get_fn import get_fn
|
10 |
|
11 |
import modelscope_studio.components.base as ms
|
12 |
import modelscope_studio.components.legacy as legacy
|
|
|
156 |
return response_text
|
157 |
|
158 |
# Get the model from sambanova_gradio
|
159 |
+
fn = get_fn(
|
160 |
model_name='Qwen2.5-Coder-32B-Instruct',
|
161 |
preprocess=preprocess,
|
162 |
postprocess=postprocess,
|
163 |
+
api_key=YOUR_API_TOKEN
|
|
|
164 |
)
|
165 |
|
166 |
response_text = ''
|