Spaces:
Runtime error
Runtime error
Update LLMwithvoice.py
Browse files- LLMwithvoice.py +0 -1
LLMwithvoice.py
CHANGED
@@ -53,7 +53,6 @@ def generate_speech(answer):
|
|
53 |
sd.wait() # Wait until the audio is done playing
|
54 |
except Exception as e:
|
55 |
print(f"Error playing audio: {e}")
|
56 |
-
# Handle the error, raise or log it, or provide an alternative approach
|
57 |
|
58 |
def gradio_interface(api_token, prompt, context):
|
59 |
answer = query_roberta(api_token, prompt, context)
|
|
|
53 |
sd.wait() # Wait until the audio is done playing
|
54 |
except Exception as e:
|
55 |
print(f"Error playing audio: {e}")
|
|
|
56 |
|
57 |
def gradio_interface(api_token, prompt, context):
|
58 |
answer = query_roberta(api_token, prompt, context)
|