Update app.py
Browse files
app.py
CHANGED
|
@@ -28,9 +28,6 @@ class BasicAgent:
|
|
| 28 |
def __call__(self, question: str):
|
| 29 |
return self.run({"question": question})["answer"]
|
| 30 |
|
| 31 |
-
# Set up the inference client using the Mistral-7B Instruct model
|
| 32 |
-
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1", token="Mistral-7B")
|
| 33 |
-
|
| 34 |
def mistral_inference(prompt: str) -> str:
|
| 35 |
response = client.text_generation(
|
| 36 |
prompt=prompt,
|
|
|
|
| 28 |
def __call__(self, question: str):
|
| 29 |
return self.run({"question": question})["answer"]
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
def mistral_inference(prompt: str) -> str:
|
| 32 |
response = client.text_generation(
|
| 33 |
prompt=prompt,
|