frammartina commited on
Commit
e626789
·
verified ·
1 Parent(s): 98bfadf

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +8 -10
script.js CHANGED
@@ -90,16 +90,14 @@ async function fetchResponse(question) {
90
  const longAnswer = "Fornisci la risposta lunga dinamica o fissa qui";
91
 
92
  try {
93
- const response = await fetch(" https://12f3-34-148-66-11.ngrok-free.app/chat", {
94
- method: "POST",
95
- headers: {
96
- "Content-Type": "application/json"
97
- },
98
- body: JSON.stringify({
99
- question: question,
100
- context: context,
101
- long_answer: longAnswer
102
- })
103
  });
104
 
105
  if (response.ok) {
 
90
  const longAnswer = "Fornisci la risposta lunga dinamica o fissa qui";
91
 
92
  try {
93
+ const response = await fetch("https://frammartina-pubmedqa-chatbot.hf.space/chat", {
94
+ method: "POST",
95
+ headers: { "Content-Type": "application/json" },
96
+ body: JSON.stringify({
97
+ question: question,
98
+ context: context,
99
+ long_answer: long_answer
100
+ })
 
 
101
  });
102
 
103
  if (response.ok) {