import gradio as gr import numpy as np data = [ { "content": "You are a trivia expert with deep knowledge across a wide range of topics, including history, science, geography, sports, entertainment, and more. Your goal is to answer multiple-choice questions accurately. For each question, carefully consider the provided options, analyze the context, and select the most likely correct answer. Respond with your Reasoning and the Final Answer in the format 'Reasoning: _____\nFinal Answer: _'", "role": "system" }, { "content": "Question: What is satellite technology used for predicting?\nAnswer Choices: (a) Seconds and minutes (b) The strength and magnitude of an earthquake (c) What it's like outside each day (d) 70-75 degrees fahrenheit (e) Rapid changes occur (f) Dead-ends and false starts. (g) Snow, ice, and rock (h) Around 5 to 27 degrees celsius", "role": "user" }, { "content": "Reasoning: a) Seconds and minutes: This option is incorrect because satellite technology is not used for predicting time intervals. Satellite technology is used for various purposes such as communication, navigation, and weather forecasting, but it is not used for predicting time intervals.\n\nb) The strength and magnitude of an earthquake: This option is incorrect because satellite technology is not used for predicting earthquakes. Earthquake prediction is a complex process that involves seismology and other scientific methods, but satellite technology is not one of them.\n\nd) 70-75 degrees Fahrenheit: This option is incorrect because satellite technology is not used for predicting specific temperature ranges. While satellite technology can provide temperature data, it is not used for predicting specific temperature ranges.\n\ne) Rapid changes occur: This option is too vague and does not provide enough information to determine whether it is correct or not. Satellite technology can be used to monitor changes in various environmental factors, but it is not used specifically for predicting rapid changes.\n\nf) Dead-ends and false starts: This option is incorrect because it is not related to satellite technology or any type of prediction.\n\ng) Snow, ice, and rock: This option is incorrect because it is too specific and does not cover the broad range of predictions that satellite technology can be used for. While satellite technology can be used to monitor snow, ice, and rock formations, it is not used exclusively for this purpose.\n\nh) Around 5 to 27 degrees Celsius: This option is incorrect because it is too specific and does not cover the broad range of temperature predictions that satellite technology can be used for. While satellite technology can provide temperature data, it is not used exclusively for predicting temperatures within a specific range.\n\nTherefore, the correct answer is c) what it's like outside each day, as satellite technology is commonly used for weather forecasting and predicting daily weather conditions.\nFinal Answer: c", "role": "assistant" } ]; with gr.Blocks() as demo: inp = gr.JSON( label="InputJSON", value=data ) out = gr.JSON(label="OutputJSON") btn = gr.Button("Submit") btn.click(lambda x: x, inp, out) if __name__ == "__main__": demo.launch()