Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,12 +6,6 @@ import groq
|
|
| 6 |
# Function to interact with the Groq API using the curl request approach
|
| 7 |
def chat_function(message):
|
| 8 |
# Define the request payload
|
| 9 |
-
+ Can be used for both chat and leak report analysis
|
| 10 |
-
+ Easy to implement
|
| 11 |
-
* Cons:
|
| 12 |
-
+ May not be as efficient as using the Groq API directly
|
| 13 |
-
+ May require additional error handling
|
| 14 |
-
|
| 15 |
payload = {
|
| 16 |
"model": "mixtral-8x7b-32768",
|
| 17 |
"messages": [
|
|
@@ -89,4 +83,4 @@ gr.Interface(
|
|
| 89 |
outputs="json",
|
| 90 |
title="Groq-Gradio Leak Report",
|
| 91 |
theme="default",
|
| 92 |
-
).launch()
|
|
|
|
| 6 |
# Function to interact with the Groq API using the curl request approach
|
| 7 |
def chat_function(message):
|
| 8 |
# Define the request payload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
payload = {
|
| 10 |
"model": "mixtral-8x7b-32768",
|
| 11 |
"messages": [
|
|
|
|
| 83 |
outputs="json",
|
| 84 |
title="Groq-Gradio Leak Report",
|
| 85 |
theme="default",
|
| 86 |
+
).launch(share=True)
|