Integrating OpenAI Web Search API in LangGraph Programming Computer Science by usmanmalik57 … temperature today in Paris? What is the todays date?"}) print(res['output'][0]['text']) ``` **Output:** ![img2.png](https://static.daniweb…;: "Who won the champions league game last night?"}) print(res['output'][0]['text']) ``` **Output:** ![img3.png](https://static.daniweb… Re: Java Coin Flip Program Programming Software Development by jassonadder …for i in range(times): flip = random.choice(['Heads', 'Tails']) print(f"Flip {i+1}: {flip}") if flip == …? ")) flipper = CoinFlipper() flipper.flipCoin(flips) except ValueError: print("Please enter a valid integer.") This version uses… Re: Coin Flip (Python Newbie) Programming Software Development by jassonadder …) if coin_flips == 0: coin_heads += 1 else: coin_tails += 1 timesflipped += 1 print("Out of 100 flips, " + str(coin_heads) + " were… 3 (which you probably are), remember to use parentheses with print()—that could have been another source of the error. Keep… Re: Coin Flip (Python Newbie) Programming Software Development by Dani > Presumably bumping every "coinflip" post to spam their URL Nothing wrong with that!! I'll take a trillion helpful posts if all someone wants in exchange is a free signature link back to their website (that only shows up for logged in members, so no SEO incentive). Re: Java Coin Flip Program Programming Software Development by Dani Better late than never! Thanks for your post. It looks like it's really helped a few people already. Re: Java Coin Flip Program Programming Software Development by Salem > It looks like it's really helped a few people already. Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. Re: Java Coin Flip Program Programming Software Development by Dani > Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. I realized that after I posted. I’m on my phone on the sofa so it wasn’t as easy to tell. Although I still can’t see the motivation. Edit: Nevermind. Perhaps they were trying to improve their member reputation/quality score?? (Won’t work because you need… Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 …needed dataset.reset_index(drop=True, inplace=True) # print value counts print(dataset["airline_sentiment"].value_counts()) ``` **Output:** …i = i + 1 print(i, sentiment_value) except Exception as e: print("===================") print("Exception occurred:",… Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Salem …/digital-media/ui-ux-design/threads/543236/best-ways-to-print-a-high-quality-book-cover Re: Cannot run exe from asp.net Programming Web Development by lennyli …prompt. > > So did it even give you `print("Waiting for a connection...")` ? > >…if __name__ == "__main__": > print('Server Begin') > main() > print('Server End') > > You can add… prompt even if i added the suggested code print('server begin'). Could it be due to some… Re: Cannot run exe from asp.net Programming Web Development by Salem … to the command prompt. So did it even give you `print("Waiting for a connection...")` ? Consider making your server… main like this. if __name__ == "__main__": print('Server Begin') main() print('Server End') You can add more prints in the… Re: Cannot run exe from asp.net Programming Web Development by lennyli …)) # Listen on all interfaces on port 9999 server_socket.listen(1) print("Waiting for a connection...") conn, addr = server_socket.accept…() print(f"Connection from {addr} has been established!") while … Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani I agree that they *might* be AI generated, or at least have the help of AI. Sometimes it's hard to tell, and I always want to exercise extreme caution and not delete or infract a post unless I'm 100% confident. I have a bit of a migraine right now, so I have to put a little more thought into whether these 2 posts should be deleted when my head is a… Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Reverend Jim I have a problem with people who start posts about a topic with "let's discuss", but don't actually start the discussion. I have a friend (?) in Toronto who, especially during election season (which seems to be always these days), asking for my opinion on things without ever offering one of her own. I got tired of putting in the effort … Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani I disagree with that sentiment when it comes to a Q&A forum such as DaniWeb. The very premise of the site is that people ask questions. Quite often, uninformed questions. Sometimes those questions are just asking for your informed opinion as an expert in your field or as someone more informed than they are at the topic at hand. Other people … Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Reverend Jim And I disagree with that. The post I was referring to was >In this thread, let's dive into the exciting advancements in the world of audio technology. From spatial audio to AI-driven sound systems, the audio landscape is evolving rapidly. Share your thoughts on the latest innovations, your favorite audio gadgets, or how new tech is shaping … Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani >I fail to see the distinction between asking for an opinion versus a suggestion versus any other form of help or assistance. I understand that you see a distinction when the OP is trying to start a discussion versus asking for advice or help. However, I don’t understand why you make that distinction in a Q&A discussion forum. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Reverend Jim 1. I thought we didn't have "forums" anymore. 2. Perhaps the OP posted in the wrong place. 3. Regardless, it was clearly a discussion and not a question. It's moot since the thread has been deleted. Re: Problem with MS Office shortcut bar Hardware and Software Microsoft Windows by themadrastiffin The shortcut bar in MS Office may not appear, may not open or may run slowly if you restart, repair or reinstall the program. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani > I have a bit of a migraine right now, so I have to put a little more thought into whether these 2 posts should be deleted when my head is a bit clearer. Unfortunately, I ended up in the ER from an unrelenting migraine that hasn’t let up for 6 days, and is not responding to any medication. I don’t mean to drop the ball on this thread. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani Today is day one trillion of this still unrelenting headache. FINALLY, a diagnosis! I have shingles. Feeling hopeful to begin treatment and start feeling better. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Reverend Jim I've had close relatives who had that but I don't recall headaches as a symptom. I hope I never get it (I can't get the vaccine because it's a live vaccine). Good luck with recovery now that you have a diagnosis. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani Jim, My intense headache is because the shingles rash is all over my scalp, my eyebrow, and even all over my eyelid! The intense headache pain was radiating from the area of my scalp where the shingles rash eventually presented. Luckily, the shingles vaccine is no longer live, so you should definitely get it. (I just happened to have not … Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Reverend Jim I'll have to ask next time I am at the pharmacy. Thanks for the tip. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani Having a very, very difficult time. My eye is swollen shut and I’m in danger of losing my vision as the shingles rash gets closer and closer to my cornea. Re: Problem with MS Office shortcut bar Hardware and Software Microsoft Windows by asadalikhan Nick, this issue sounds like a file association problem. Your URL shortcuts on the shortcut bar are likely opening with the wrong program (like a printer handler). Here’s a quick fix: 1. Go to Control Panel > Folder Options > File Types 2. Find and select .URL 3. Click Advanced and ensure it’s set to open with Internet Explorer (… Re: Problem with MS Office shortcut bar Hardware and Software Microsoft Windows by asadalikhan Nick, it’s likely a file association issue. Reassign `.url` files to open with Internet Explorer in Folder Options > File Types. That should fix the shortcut bar behavior. Best Ways to Print a High-Quality Book Cover Digital Media UI / UX Design by Zachary_6 … process, whether you’re self-publishing or working with a print-on-demand service. The right paper type, finish (glossy vs…. What printing services do you recommend—KDP, IngramSpark, or local print shops? How do you ensure color accuracy and high-quality… Re: Best Ways to Print a High-Quality Book Cover Digital Media UI / UX Design by rproffitt "Never judge a book by its cover." - Unknown. And book sales are way way down. But here's the book I recently bought. It's title is: ***"The Subtle Art of Resistance: Lessons from Cats for Surviving Fascism"*** which is the problem of today. PDFs and E-books are where it's at. Text Classification and Summarization with DeepSeek R1 Distill Llama 70B Programming Computer Science by usmanmalik57 …dataset.reset_index(drop=True, inplace=True) # print value counts print(dataset["airline_sentiment"].value_counts()) ``` **Output…'sentiment': sentiment_value }) print(i, sentiment_value) except Exception as e: print("===================") print("Exception occurred with …