Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,15 @@ import random
|
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# @tool
|
12 |
# def futuristic_profession_predictor(name: str) -> str:
|
13 |
# """Predicts the person's profession in the year 2050 based on their name.
|
|
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
+
import os
|
12 |
+
from huggingface_hub import InferenceClient
|
13 |
+
|
14 |
+
HF_API_KEY = os.getenv("HF_API_KEY")
|
15 |
+
client = InferenceClient(HF_API_KEY)
|
16 |
+
|
17 |
+
response = client.text_generation("Hello!", model="Qwen/Qwen2.5-Coder-32B-Instruct")
|
18 |
+
print(response)
|
19 |
+
|
20 |
# @tool
|
21 |
# def futuristic_profession_predictor(name: str) -> str:
|
22 |
# """Predicts the person's profession in the year 2050 based on their name.
|