Spaces:
Sleeping
Sleeping
app.py
Browse files
app.py
CHANGED
|
@@ -64,14 +64,14 @@ def analyze_btc(prompt):
|
|
| 64 |
elif "trade data" in prompt.lower():
|
| 65 |
return get_real_time_trade_data()
|
| 66 |
elif "chart" in prompt.lower():
|
| 67 |
-
return gr.HTML(get_tradingview_chart()) #
|
| 68 |
return "Try asking about the BTC price, real-time trade data, or TradingView chart."
|
| 69 |
|
| 70 |
# Set up the Gradio interface
|
| 71 |
interface = gr.Interface(
|
| 72 |
fn=analyze_btc,
|
| 73 |
inputs="text",
|
| 74 |
-
outputs="html", #
|
| 75 |
title="Bitcoin Analyzer",
|
| 76 |
description="Ask about the current Bitcoin price, real-time trade data, or TradingView chart."
|
| 77 |
)
|
|
|
|
| 64 |
elif "trade data" in prompt.lower():
|
| 65 |
return get_real_time_trade_data()
|
| 66 |
elif "chart" in prompt.lower():
|
| 67 |
+
return gr.HTML(get_tradingview_chart()) # Use HTML component for TradingView chart
|
| 68 |
return "Try asking about the BTC price, real-time trade data, or TradingView chart."
|
| 69 |
|
| 70 |
# Set up the Gradio interface
|
| 71 |
interface = gr.Interface(
|
| 72 |
fn=analyze_btc,
|
| 73 |
inputs="text",
|
| 74 |
+
outputs="html", # Ensure output is HTML
|
| 75 |
title="Bitcoin Analyzer",
|
| 76 |
description="Ask about the current Bitcoin price, real-time trade data, or TradingView chart."
|
| 77 |
)
|