Pengi5659 commited on
Commit
4295d10
·
verified ·
1 Parent(s): 29d4f0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -4,6 +4,12 @@ import gradio as gr
4
  import random as rd
5
  from huggingface_hub import InferenceClient
6
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
 
 
 
 
 
 
7
  def respond (message, history):
8
  messages = [{"role": "system", "content": "You are a chatbot who is sassy and doesnt explain an anser unless someone asks twice."}]
9
  if history:
@@ -21,13 +27,6 @@ def respond (message, history):
21
  response += token
22
  yield response
23
 
24
- # Define the Gradio interface
25
- css = """
26
- .gradio-container {
27
- background-color: #8C9A61; /* Sage Green */
28
- font-family: 'Times New Roman', Times, serif;
29
- }
30
- """
31
  chatbot = gr.ChatInterface(respond, type = "messages")
32
  chatbot.launch(debug=True)
33
 
 
4
  import random as rd
5
  from huggingface_hub import InferenceClient
6
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
7
+ css = """
8
+ .gradio-container {
9
+ background-color: #8C9A61; /* Sage Green */
10
+ font-family: 'Times New Roman', Times, serif;
11
+ }
12
+ """
13
  def respond (message, history):
14
  messages = [{"role": "system", "content": "You are a chatbot who is sassy and doesnt explain an anser unless someone asks twice."}]
15
  if history:
 
27
  response += token
28
  yield response
29
 
 
 
 
 
 
 
 
30
  chatbot = gr.ChatInterface(respond, type = "messages")
31
  chatbot.launch(debug=True)
32