ajitkumar22 commited on
Commit
741fdb4
·
verified ·
1 Parent(s): 45236a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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.