Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- .gitignore +2 -1
- gradio_app.py +6 -6
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
venv
|
|
|
|
1 |
+
venv
|
2 |
+
Apr.csv
|
gradio_app.py
CHANGED
@@ -5,11 +5,11 @@ import gradio as gr
|
|
5 |
import csv
|
6 |
import random
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
|
14 |
mistral_client = OpenAI(
|
15 |
api_key='EMPTY',
|
@@ -47,7 +47,7 @@ Fact Statement: ```{fact}```
|
|
47 |
def generate(input_text):
|
48 |
com = prompt.format(fact=input_text)
|
49 |
print(input_text)
|
50 |
-
chat_completion =
|
51 |
# model="gpt-4-turbo",
|
52 |
model='Qwen/Qwen1.5-72B-Chat-GPTQ-Int4',
|
53 |
temperature=0.3,
|
|
|
5 |
import csv
|
6 |
import random
|
7 |
|
8 |
+
client = AzureOpenAI(
|
9 |
+
api_key="e5a86e5ac7ce453a8fae2dcbfaafbef7",
|
10 |
+
api_version="2023-07-01-preview",
|
11 |
+
azure_endpoint="https://votum.openai.azure.com/",
|
12 |
+
)
|
13 |
|
14 |
mistral_client = OpenAI(
|
15 |
api_key='EMPTY',
|
|
|
47 |
def generate(input_text):
|
48 |
com = prompt.format(fact=input_text)
|
49 |
print(input_text)
|
50 |
+
chat_completion = client.chat.completions.create(
|
51 |
# model="gpt-4-turbo",
|
52 |
model='Qwen/Qwen1.5-72B-Chat-GPTQ-Int4',
|
53 |
temperature=0.3,
|