Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
import gradio as gr
|
4 |
|
5 |
HUGGINGFACE_API_TOKEN = os.getenv("HUGGINGFACE_API_TOKEN")
|
6 |
-
MODEL_NAME = "
|
7 |
|
8 |
def query_huggingface_api(prompt):
|
9 |
API_URL = f"https://api-inference.huggingface.co/models/{MODEL_NAME}"
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
HUGGINGFACE_API_TOKEN = os.getenv("HUGGINGFACE_API_TOKEN")
|
6 |
+
MODEL_NAME = "deepseek-ai/DeepSeek-Coder-V2-Instruct" # ✅ 直接可用的免费模型
|
7 |
|
8 |
def query_huggingface_api(prompt):
|
9 |
API_URL = f"https://api-inference.huggingface.co/models/{MODEL_NAME}"
|