Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,12 @@ web_search = DuckDuckGoSearchTool()
|
|
| 45 |
|
| 46 |
# Switch to Gemini if this model gets overloaded
|
| 47 |
my_id = 'Qwen/Qwen2.5-Coder-32B-Instruct'
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
model = HfApiModel(
|
| 50 |
max_tokens=2096,
|
| 51 |
temperature=0.5,
|
|
|
|
| 45 |
|
| 46 |
# Switch to Gemini if this model gets overloaded
|
| 47 |
my_id = 'Qwen/Qwen2.5-Coder-32B-Instruct'
|
| 48 |
+
# example of an end point
|
| 49 |
+
#my_id="https://ntqicork29enjoy5.us-east4.gcp.endpoints.huggingface.cloud"
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
my_id = os.getenv("QWEN_URI")
|
| 53 |
+
|
| 54 |
model = HfApiModel(
|
| 55 |
max_tokens=2096,
|
| 56 |
temperature=0.5,
|