Tariq349 commited on
Commit
11a1f9e
·
verified ·
1 Parent(s): 863f80a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -53,9 +53,9 @@ Provide a detailed and expert-level response.
53
  return f"❌ Error processing file: {e}"
54
 
55
  # -------------------------------
56
- # Gradio UI
57
  # -------------------------------
58
- with gr.Blocks(theme=gr.themes.Soft(), title="CryptoSphere AI Agent") as interface:
59
 
60
  gr.Markdown(
61
  """
@@ -67,7 +67,10 @@ with gr.Blocks(theme=gr.themes.Soft(), title="CryptoSphere AI Agent") as interfa
67
 
68
  with gr.Tab("💬 Blockchain Knowledge Assistant"):
69
  with gr.Row():
70
- user_input = gr.Textbox(label="Ask anything about Blockchain, Crypto, Protocols, Web3...")
 
 
 
71
  query_btn = gr.Button("Ask")
72
  output = gr.Markdown()
73
 
@@ -101,3 +104,4 @@ with gr.Blocks(theme=gr.themes.Soft(), title="CryptoSphere AI Agent") as interfa
101
  )
102
 
103
  interface.launch()
 
 
53
  return f"❌ Error processing file: {e}"
54
 
55
  # -------------------------------
56
+ # Gradio UI (no theme -> HF safe)
57
  # -------------------------------
58
+ with gr.Blocks(title="CryptoSphere AI Agent") as interface:
59
 
60
  gr.Markdown(
61
  """
 
67
 
68
  with gr.Tab("💬 Blockchain Knowledge Assistant"):
69
  with gr.Row():
70
+ user_input = gr.Textbox(
71
+ label="Ask anything about Blockchain, Crypto, Protocols, Web3...",
72
+ placeholder="Example: What is slashing in Proof of Stake?"
73
+ )
74
  query_btn = gr.Button("Ask")
75
  output = gr.Markdown()
76
 
 
104
  )
105
 
106
  interface.launch()
107
+