Tonic commited on
Commit
55db529
1 Parent(s): a501760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -1,12 +1,9 @@
1
- from transformers import AutoTokenizer, MistralForCausalLM
2
- import torch
3
- import gradio as gr
4
- import random
5
- from textwrap import wrap
6
  from transformers import AutoConfig, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, MistralForCausalLM
7
  from peft import PeftModel, PeftConfig
8
  import torch
9
  import gradio as gr
 
 
10
 
11
  # Functions to Wrap the Prompt Correctly
12
  def wrap_text(text, width=90):
@@ -103,8 +100,8 @@ class ChatBot:
103
  bot = ChatBot()
104
 
105
  title = "👋🏻Welcome to Tonic's MistralMed Chat🚀"
106
- description = "You can use this Space to test out the current model (MistralMed) or duplicate this Space and use it for any other model on 🤗HuggingFace. Join me on Discord to build together."
107
- examples = [["What is the proper treatment for buccal herpes?", "Please provide information on the most effective antiviral medications and home remedies for treating buccal herpes."]]
108
 
109
  iface = gr.Interface(
110
  fn=bot.predict,
 
 
 
 
 
 
1
  from transformers import AutoConfig, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, MistralForCausalLM
2
  from peft import PeftModel, PeftConfig
3
  import torch
4
  import gradio as gr
5
+ import random
6
+ from textwrap import wrap
7
 
8
  # Functions to Wrap the Prompt Correctly
9
  def wrap_text(text, width=90):
 
100
  bot = ChatBot()
101
 
102
  title = "👋🏻Welcome to Tonic's MistralMed Chat🚀"
103
+ description = "You can use this Space to test out the current model [(Tonic/MistralMed)](https://huggingface.co/Tonic/MistralMed) or duplicate this Space and use it locally or on 🤗HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
104
+ examples = [["[Question:] What is the proper treatment for buccal herpes?", "You are a medicine and public health expert, you will recieve a question, answer the question and complete answer"]]
105
 
106
  iface = gr.Interface(
107
  fn=bot.predict,