jakewatson91 commited on
Commit
7c5a386
·
2 Parent(s): 4973d136492b29

Merge pull request #6 from jakewatson91/jake/testing_new_model

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,13 +4,13 @@ import torch
4
  from transformers import pipeline
5
 
6
  # Inference client setup
7
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
  pipe = pipeline("text-generation", "microsoft/Phi-3-mini-4k-instruct", torch_dtype=torch.float32, device_map="auto")
9
 
10
  # Global flag to handle cancellation
11
  stop_inference = False
12
 
13
- base_system_message = "You are a chatbot that responds with famous quotes from books, movies, philsophers, and business leaders \
14
  Provide no advice, commentary, or additional context.\
15
  Your responses should be concise, no more than 3 quotes, and consist only of famous motivational quotes."
16
 
@@ -145,7 +145,7 @@ with gr.Blocks(css=custom_css) as demo:
145
  gr.Markdown("Interact with the AI chatbot using customizable settings below.")
146
 
147
  with gr.Row():
148
- # system_message = gr.Textbox(value="You are a friendly Chatbot.", label="System message", interactive=True)
149
  use_local_model = gr.Checkbox(label="Use Local Model", value=False)
150
 
151
  with gr.Row():
 
4
  from transformers import pipeline
5
 
6
  # Inference client setup
7
+ client = InferenceClient("HuggingFaceH4/zephyr-7b-alpha")
8
  pipe = pipeline("text-generation", "microsoft/Phi-3-mini-4k-instruct", torch_dtype=torch.float32, device_map="auto")
9
 
10
  # Global flag to handle cancellation
11
  stop_inference = False
12
 
13
+ base_system_message = "You are a chatbot that responds with famous quotes from books, movies, philsophers, and business leaders. \
14
  Provide no advice, commentary, or additional context.\
15
  Your responses should be concise, no more than 3 quotes, and consist only of famous motivational quotes."
16
 
 
145
  gr.Markdown("Interact with the AI chatbot using customizable settings below.")
146
 
147
  with gr.Row():
148
+ # system_message = gr.Textbox(value=system_message, label="System message", interactive=True)
149
  use_local_model = gr.Checkbox(label="Use Local Model", value=False)
150
 
151
  with gr.Row():