macadeliccc commited on
Commit
b6b6848
·
1 Parent(s): 352fcc4
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -46,12 +46,13 @@ def chat_with_ochat(message):
46
  return f"Error: {e}"
47
 
48
 
49
-
50
 
51
  # Create a Gradio Blocks interface
52
  with gr.Blocks(theme=gr.themes.Soft()) as app:
53
  gr.Markdown("## vLLM OpenChat-3.5 Interface")
54
- # Your markdown text here
 
55
 
56
  with gr.Row():
57
  input_text = gr.Textbox(label="Your Message", placeholder="Type your message here")
@@ -62,8 +63,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
62
 
63
  def update_output(input_message):
64
  global chat_history
65
- user_message = (input_message) # User's message
66
- server_response = (chat_with_ochat(input_message)) # Server's response
67
  chat_history.extend([user_message, server_response])
68
  return chat_history
69
 
 
46
  return f"Error: {e}"
47
 
48
 
49
+ chat_history = []
50
 
51
  # Create a Gradio Blocks interface
52
  with gr.Blocks(theme=gr.themes.Soft()) as app:
53
  gr.Markdown("## vLLM OpenChat-3.5 Interface")
54
+ gr.Markdown("Run on your own machine using this command: ```docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all \
55
+ registry.hf.space/macadeliccc-openchat-3-5-chatbot:latest python app.py```")
56
 
57
  with gr.Row():
58
  input_text = gr.Textbox(label="Your Message", placeholder="Type your message here")
 
63
 
64
  def update_output(input_message):
65
  global chat_history
66
+ user_message = ([input_message]) # User's message
67
+ server_response = (chat_with_ochat(user_message)) # Server's response
68
  chat_history.extend([user_message, server_response])
69
  return chat_history
70