openfree commited on
Commit
e703ff5
·
verified ·
1 Parent(s): 399a326

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -24,8 +24,8 @@ def create_deepseek_interface():
24
  # Prepare the API request
25
  url = "https://api.fireworks.ai/inference/v1/chat/completions"
26
  payload = {
27
- "model": "accounts/fireworks/models/deepseek-v3",
28
- "max_tokens": 16384,
29
  "top_p": 1,
30
  "top_k": 40,
31
  "presence_penalty": 0,
@@ -41,7 +41,7 @@ def create_deepseek_interface():
41
 
42
  try:
43
  # Make the API request
44
- response = requests.post(url, headers=headers, data=json.dumps(payload))
45
  response.raise_for_status() # Raise exception for HTTP errors
46
 
47
  # Extract the response
@@ -97,9 +97,9 @@ def create_deepseek_interface():
97
  gr.Markdown(
98
  """
99
  ### 📊 Model Details
100
- - **Model**: DeepSeek-V3
101
  - **Provider**: Fireworks AI
102
- - **Max Tokens**: 16,384
103
  - **Temperature**: 0.6
104
  - **Capabilities**: Advanced Language Understanding
105
  """
@@ -111,9 +111,7 @@ def create_deepseek_interface():
111
  chatbot = gr.Chatbot(
112
  height=500,
113
  show_label=False,
114
- container=True,
115
- bubble=True,
116
- avatar_images=("👤", "🤖")
117
  )
118
 
119
  # Error message display
 
24
  # Prepare the API request
25
  url = "https://api.fireworks.ai/inference/v1/chat/completions"
26
  payload = {
27
+ "model": "accounts/fireworks/models/deepseek-v3-0324",
28
+ "max_tokens": 20480,
29
  "top_p": 1,
30
  "top_k": 40,
31
  "presence_penalty": 0,
 
41
 
42
  try:
43
  # Make the API request
44
+ response = requests.request("POST", url, headers=headers, data=json.dumps(payload))
45
  response.raise_for_status() # Raise exception for HTTP errors
46
 
47
  # Extract the response
 
97
  gr.Markdown(
98
  """
99
  ### 📊 Model Details
100
+ - **Model**: DeepSeek-V3-0324
101
  - **Provider**: Fireworks AI
102
+ - **Max Tokens**: 20,480
103
  - **Temperature**: 0.6
104
  - **Capabilities**: Advanced Language Understanding
105
  """
 
111
  chatbot = gr.Chatbot(
112
  height=500,
113
  show_label=False,
114
+ container=True
 
 
115
  )
116
 
117
  # Error message display