Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def toggle_all(prompt):
|
|
| 13 |
# ここでタブの可視性を切り替えるロジックを追加
|
| 14 |
client = Groq(api_key=groqkey)
|
| 15 |
|
| 16 |
-
response = client.chat.completions.create(
|
| 17 |
model="llama-3.3-70b-versatile",
|
| 18 |
messages=[
|
| 19 |
{
|
|
@@ -26,7 +26,8 @@ def toggle_all(prompt):
|
|
| 26 |
stream=False,
|
| 27 |
stop=None,
|
| 28 |
)
|
| 29 |
-
answer = response.choices[0].message.content
|
|
|
|
| 30 |
return gr.update(visible=True), answer
|
| 31 |
|
| 32 |
def hello(profile: gr.OAuthProfile | None) -> str:
|
|
|
|
| 13 |
# ここでタブの可視性を切り替えるロジックを追加
|
| 14 |
client = Groq(api_key=groqkey)
|
| 15 |
|
| 16 |
+
'''response = client.chat.completions.create(
|
| 17 |
model="llama-3.3-70b-versatile",
|
| 18 |
messages=[
|
| 19 |
{
|
|
|
|
| 26 |
stream=False,
|
| 27 |
stop=None,
|
| 28 |
)
|
| 29 |
+
answer = response.choices[0].message.content'''
|
| 30 |
+
answer = prompt+" answered."
|
| 31 |
return gr.update(visible=True), answer
|
| 32 |
|
| 33 |
def hello(profile: gr.OAuthProfile | None) -> str:
|