Spaces:
Runtime error
Runtime error
File size: 416 Bytes
78d6aa1 |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
import os
os.environ["WOLFRAM_ALPHA_APPID"] = "G2RWL3-VWA9LPQQYH"
from langchain.utilities.wolfram_alpha import WolframAlphaAPIWrapper
wolfram = WolframAlphaAPIWrapper()
def answer(question):
out=wolfram.run(question)
return out
demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['Ram has 5 apples. He gives 3 to Shyam. How many apples does Ram have now?']])
demo.launch() |