abhicodes commited on
Commit
693935b
1 Parent(s): 7bd4a64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks(theme=theme) as Alzheimer:
73
  def respond(message, history):
74
  bot_message = g4f.ChatCompletion.create(
75
  model="gpt-3.5-turbo",
76
- provider=g4f.Provider.You,
77
  messages=[{"role": "user",
78
  "content": "Your role is Alzheimer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Alzheimer or not. If it is not related to Alzheimer then do not reply the query whereas if related to Alzheimer reply it as usual. Here's the user Query:" + message}],
79
  )
@@ -103,7 +103,7 @@ with gr.Blocks(theme=theme) as BreastCancer:
103
  def respond(message, history):
104
  bot_message = g4f.ChatCompletion.create(
105
  model="gpt-3.5-turbo",
106
- provider=g4f.Provider.You,
107
  messages=[{"role": "user",
108
  "content": "Your role is Breast Cancer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Breast Cancer or not. If it is not related to Breast Cancer then do not reply the query whereas if related to Breast Cancer reply it as usual. Here's the user Query:" + message}],
109
  )
@@ -132,7 +132,7 @@ with gr.Blocks(theme=theme) as BrainTumor:
132
  def respond(message, history):
133
  bot_message = g4f.ChatCompletion.create(
134
  model="gpt-3.5-turbo",
135
- provider=g4f.Provider.You,
136
  messages=[{"role": "user",
137
  "content": "Your role is Brain Tumor Disease Expert. Now I will provide you with the user query. First check if the user query is related to Brain Tumor or not. If it is not related to Brain Tumor then do not reply the query whereas if related to Brain Tumor reply it as usual. Here's the user Query:" + message}],
138
  )
 
73
  def respond(message, history):
74
  bot_message = g4f.ChatCompletion.create(
75
  model="gpt-3.5-turbo",
76
+ provider=g4f.Provider.GptGo,
77
  messages=[{"role": "user",
78
  "content": "Your role is Alzheimer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Alzheimer or not. If it is not related to Alzheimer then do not reply the query whereas if related to Alzheimer reply it as usual. Here's the user Query:" + message}],
79
  )
 
103
  def respond(message, history):
104
  bot_message = g4f.ChatCompletion.create(
105
  model="gpt-3.5-turbo",
106
+ provider=g4f.Provider.GptGo,
107
  messages=[{"role": "user",
108
  "content": "Your role is Breast Cancer Disease Expert. Now I will provide you with the user query. First check if the user query is related to Breast Cancer or not. If it is not related to Breast Cancer then do not reply the query whereas if related to Breast Cancer reply it as usual. Here's the user Query:" + message}],
109
  )
 
132
  def respond(message, history):
133
  bot_message = g4f.ChatCompletion.create(
134
  model="gpt-3.5-turbo",
135
+ provider=g4f.Provider.GptGo,
136
  messages=[{"role": "user",
137
  "content": "Your role is Brain Tumor Disease Expert. Now I will provide you with the user query. First check if the user query is related to Brain Tumor or not. If it is not related to Brain Tumor then do not reply the query whereas if related to Brain Tumor reply it as usual. Here's the user Query:" + message}],
138
  )