Spaces:
Running
on
Zero
Running
on
Zero
gospacedev
commited on
Commit
•
e70ad5d
1
Parent(s):
41ee1fc
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import json
|
|
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
|
|
|
|
5 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
6 |
|
7 |
def system_instructions(question_difficulty, tone, topic):
|
|
|
1 |
import json
|
2 |
+
import spaces
|
3 |
import gradio as gr
|
4 |
from huggingface_hub import InferenceClient
|
5 |
|
6 |
+
@spaces.GPU
|
7 |
+
|
8 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
9 |
|
10 |
def system_instructions(question_difficulty, tone, topic):
|