Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,12 @@
|
|
1 |
-
pip install streamlit==1.17.0
|
2 |
-
pip install groq==0.3.2
|
3 |
-
pip install pandas==1.5.3
|
4 |
-
|
5 |
import os
|
6 |
import streamlit as st
|
7 |
-
from groq import Groq
|
8 |
from io import BytesIO
|
|
|
9 |
|
10 |
# Set up the Groq client
|
11 |
-
|
|
|
|
|
12 |
|
13 |
# Function to request pattern generation from Groq API
|
14 |
def get_pattern_from_groq(body_measurements, garment_type):
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
|
|
3 |
from io import BytesIO
|
4 |
+
from groq import Groq
|
5 |
|
6 |
# Set up the Groq client
|
7 |
+
|
8 |
+
GROQ_API_KEY = "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"
|
9 |
+
client = Groq(api_key = GROQ_API_KEY)
|
10 |
|
11 |
# Function to request pattern generation from Groq API
|
12 |
def get_pattern_from_groq(body_measurements, garment_type):
|