Spaces:
Runtime error
Runtime error
Commit
·
32727e3
1
Parent(s):
08badda
Update run.py
Browse files
run.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
import random
|
4 |
import json
|
5 |
def response(message, history):
|
6 |
-
url="https://
|
7 |
body={"prompt":"###Frage: "+message+" ###Antwort:","max_tokens":1000,"stop":"###","stream":True} #128
|
8 |
response=""
|
9 |
buffer=""
|
@@ -30,4 +30,4 @@ def response(message, history):
|
|
30 |
pass
|
31 |
yield response
|
32 |
|
33 |
-
gr.ChatInterface(response,title="
|
|
|
3 |
import random
|
4 |
import json
|
5 |
def response(message, history):
|
6 |
+
url="https://AFischer1985-CollectiveCognition-GGUF-API.hf.space/v1/completions"
|
7 |
body={"prompt":"###Frage: "+message+" ###Antwort:","max_tokens":1000,"stop":"###","stream":True} #128
|
8 |
response=""
|
9 |
buffer=""
|
|
|
30 |
pass
|
31 |
yield response
|
32 |
|
33 |
+
gr.ChatInterface(response,title="AI-Interface",chatbot=gr.Chatbot(height=250), description="Graphical User Interface to *CollectiveCognition-v1.1-Mistral-7B-GGUF* (Q4_0) based on the [API here](https://huggingface.co/spaces/AFischer1985/CollectiveCognition-GGUF-API)").queue().launch(share=True)
|