tester1hf commited on
Commit
8af62fa
·
verified ·
1 Parent(s): 3eedd37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,20 +5,20 @@ client = Client()
5
 
6
  def generate_text(prompt):
7
  response = client.chat.completions.create(
8
- model="gpt-3.5",
9
  messages=[{"role": "user", "content": prompt}],
10
  web_search=False
11
  )
12
  return response.choices[0].message.content
13
 
14
  examples = [
15
- "Write a haiku about artificial intelligence",
16
- "Explain quantum computing in simple terms",
17
- "What are the benefits of renewable energy?"
18
  ]
19
 
20
  with gr.Blocks() as demo:
21
- gr.Markdown("# Text Generation Demo")
22
 
23
  with gr.Row():
24
  prompt_input = gr.Textbox(
 
5
 
6
  def generate_text(prompt):
7
  response = client.chat.completions.create(
8
+ model="llama-3.3-70b",
9
  messages=[{"role": "user", "content": prompt}],
10
  web_search=False
11
  )
12
  return response.choices[0].message.content
13
 
14
  examples = [
15
+ "Почему такие высокие налоги?",
16
+ "Какие цели СВО?",
17
+ "Когда развалится Америка?"
18
  ]
19
 
20
  with gr.Blocks() as demo:
21
+ gr.Markdown("# Kisel TV")
22
 
23
  with gr.Row():
24
  prompt_input = gr.Textbox(