Sg-at-srijan-us-kg
commited on
Commit
•
e05c2f6
1
Parent(s):
d1af47c
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
# Initialize the Hugging Face Inference Client
|
5 |
-
client = InferenceClient()
|
6 |
|
7 |
# Function to stream the compliance suggestions as they are generated
|
8 |
def analyze_compliance_stream(code, compliance_standard):
|
@@ -14,7 +14,6 @@ def analyze_compliance_stream(code, compliance_standard):
|
|
14 |
|
15 |
# Create a stream to receive generated content
|
16 |
stream = client.chat.completions.create(
|
17 |
-
model="Qwen/Qwen2.5-Coder-32B-Instruct",
|
18 |
messages=messages,
|
19 |
temperature=0.5,
|
20 |
max_tokens=32000,
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
# Initialize the Hugging Face Inference Client
|
5 |
+
client = InferenceClient("Qwen/Qwen2.5-Coder-32B-Instruct")
|
6 |
|
7 |
# Function to stream the compliance suggestions as they are generated
|
8 |
def analyze_compliance_stream(code, compliance_standard):
|
|
|
14 |
|
15 |
# Create a stream to receive generated content
|
16 |
stream = client.chat.completions.create(
|
|
|
17 |
messages=messages,
|
18 |
temperature=0.5,
|
19 |
max_tokens=32000,
|